Forum >SEN0256 Temperature probe not reading correctly
TroubleshootingArduino

SEN0256 Temperature probe not reading correctly

userHead Toby.Cotter 2023-02-01 15:24:13 1429 Views11 Replies

I have a SEN0256 probe connected to a 5v Arduino Uno.  When I point the probe at my forehead, I am reading a temperature of 62.0 C.  I should be getting a reading of 37C.  I copied the conversion formula straight from the DFRobot wiki page.  Any idea on why I am reading the wrong value?

 

 

   

 

 

void setup() {

  Serial.begin(115200);

}


 

void loop() {

  unsigned int ADC_Value = analogRead(A5); 

  float i=((double)ADC_Value*450/614.4-70);

  Serial.print(i);

  Serial.println();

  delay(500);

}

2024-03-26 00:36:48

Thanks for the information.Keep sharinglike this.

 

coreball

userHeadPic Chase.Peck
Chase.Peck wrote:

Hope it can help!

coreball

2024-03-26 00:38:38
1 Replies
2023-12-05 23:51:20

According to the datasheet, I have connected the power supply to the respective pins ( Red – 24VDC , Black -GND , Yellow – Output , Sheield – GND ). After powering on, I am receiving a sensor output of 0. 8V DC.

Based on the sensor specifications, if I calculate the temperature with respect to the output voltage, it indicates 70 degrees Celsius.

However, the actual room temperature is only around 20 to 23 degrees Celsius.

kindly request your assistance in resolving this issue.

userHeadPic silambarasan.Bala
2023-02-11 03:24:12

Changing from 450 to 340 solved the issue.  Thank you for your help!!!

userHeadPic Toby.Cotter
2023-02-09 03:27:51

I have my Arduino powered by 9v.  I have the temp sensor connected to A3 and the code also uses A3.  I am still reading my body temperature as 62.0 C.  I am thinking the formula below is incorrect or my probe is malfunctioning.  Any ideas?  

 

  unsigned int ADC_Value = analogRead(A3); 

  float i=((double)ADC_Value*450/614.4-70);

 

From the code above:

ADC_Value = 180

i = 61.84

 

Thank you for your help

userHeadPic Toby.Cotter
2023-02-07 02:20:16

I think, some corrections must be done in the wiki: https://wiki.dfrobot.com/TS01_IR_Thermal_Sensor_(0-3V)_SKU_SEN0256

The diagram shows that the yellow wire of the sensor is connected to A5. But the code reads the analog value from the pin A3. 

 

 unsigned int ADC_Value = analogRead(A3);

userHeadPic bidrohini.bidrohini
2023-02-06 15:28:15

Attached is a photo of my setup.  The Arduino is powered by USB, but the USB is a powered hub so I think it should be ok.  I have also tried with a 2nd Arduino board and got the same issue.  

 

Thanks

 

 

userHeadPic Toby.Cotter