This is one of the first projects every Arduino enthusiast should build. It teaches you about sensors, displays, and basic coding.
| Sensor | Type | Range | Accuracy | | :--- | :--- | :--- | :--- | | LM35 | Analog | -55 to 150°C | ±0.5°C | | DS18B20 | Digital (1-Wire) | -55 to 125°C | ±0.5°C |
The DS18B20 is more accurate and can be chained (multiple sensors on one wire), but requires a library.
```cpp #include <LiquidCrystal_I2C.h> LiquidCrystal_I2C lcd(0x27, 16, 2);
void setup() { lcd.init(); lcd.backlight(); }
void loop() { int reading = analogRead(A0); float voltage = reading * (5.0 / 1024.0); float tempC = voltage * 100; // LM35: 10mV per degree C
lcd.setCursor(0, 0); lcd.print("Temp: "); lcd.print(tempC); lcd.print(" C"); delay(500); } ```
Build this project with the Digital Thermometer with LCD Display kit!
Explore our collection of DIY kits and components. All project components mentioned in this guide are available in our store.
Browse All Projects