SEN0546 producing bad data
Hello,
I have connected the SEN0546 to an esp32. I have verified that the i2c device at address 0x40 is present using a wire scanner. However the sensor is returning a fixed value of 33541 which when using the sample code converts to 44.45C and 100 RH. Which is obviously wrong.
Do you have any suggestions?
Follow this wiki page meticulously regarding your code and connection. https://wiki.dfrobot.com/SKU_SEN0546_I2C_Temperature_and_Humidity_Sensor_Stainless_Steel_Shell
Check the jumper wires that you're using.
You can also consider using the DS18B20 underwater version:
https://www.pcbway.com/project/shareproject/DIY_Thermometer_with_TTGO_T_Display_and_DS18B20_V2_d5409e6c.html
lia.ifat
One more thing, in the sample code there is one line that seems wrong:
Wire.beginTransmission(address);
Wire.write(®, 1);
if ( Wire.endTransmission() != 0) {
return 0;
}
The
Wire.write(r,1)
line above is obviously wrong, but cant find what the correct line is. Any suggestions would be greatly appreciated
Ari.FainchteinThe typo in the sample code has been fixed, would you upload the wiki sample code again to see if the problem has been solved?
https://wiki.dfrobot.com/SKU_SEN0546_I2C_Temperature_and_Humidity_Sensor_Stainless_Steel_Shell