SEN0546 producing bad data

userHead Ari.Fainchtein 2024-09-16 13:22:11 70 Views3 Replies

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?

2024-09-25 22:45:17

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

 

userHeadPic lia.ifat
2024-09-16 17:48:50

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

userHeadPic Ari.Fainchtein
Yeez_B wrote:

The 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

2024-09-19 23:47:34
1 Replies