Hi! Could someone here show/ tell me how to get an LM35 Temperature Sensor working on this specific Adafruit Feather HUZZAH ESP8266 board (see photo). Where the temperature is simply printed in the serial monitor.
I am fairly new to arduino and when I try to build this up my LM35 Temperature Sensor gets extremely hot.
You may try the following connection (Fig-1) and the sketch that follows:
Figure-1:
Sketch:
void setup()
{
Serial.begin(115200);
//analogReference(INTERNAL); is not accepted
}
void loop()
{
float myTemp = 100*(1.1/1023)*analogRead(A0);
Serial.println(myTemp, 1);
delay(1000);
}
I tried the following setup (Fig-2) in my ESP8266 based NodeMCU, there are some responses from LM35.
Figure-2:
Output:
23.3
23.0
24.2
24.2
24.2
24.3
24.3
25.5
32.0
35.3
24.3
system
Closed
October 25, 2022, 6:35am
3
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.