Thermometer
Measures ambient temperature using analog, digital, or I2C temperature sensors.
Overview
Temperature sensors are among the most common components in Arduino projects. ArduinoStudio supports several popular sensors, from simple analog (LM35, TMP36) to precision digital (DS18B20) and I2C (MCP9808). All emit sensor-data events with temperature readings in both Celsius and Fahrenheit.
Supported Sensors
| Sensor | Interface | Range | Accuracy |
|---|---|---|---|
| LM35 | Analog | -55 to +150 C | +-0.5 C |
| TMP36 | Analog | -40 to +125 C | +-1 C |
| DS18B20 | 1-Wire (digital) | -55 to +125 C | +-0.5 C |
| MCP9808 | I2C | -40 to +125 C | +-0.25 C |
Wiring Guide
LM35 / TMP36 (Analog)
| Sensor Pin | Arduino Pin |
|---|---|
| VCC | 5V |
| GND | GND |
| Vout | Analog pin (A0–A5) |
LM35 outputs 10mV per degree Celsius. TMP36 outputs 10mV/C with a 500mV offset (0C = 500mV).
DS18B20 (1-Wire Digital)
| Sensor Pin | Arduino Pin |
|---|---|
| VCC (red) | 5V |
| GND (black) | GND |
| Data (yellow) | Any digital pin + 4.7k pullup to 5V |
MCP9808 (I2C)
| Sensor Pin | Arduino Pin |
|---|---|
| VCC | 3.3V |
| GND | GND |
| SDA | A4 (Uno) / 20 (Mega) |
| SCL | A5 (Uno) / 21 (Mega) |
Usage in ArduinoStudio
Drag the Thermometer component onto the canvas, select your sensor model, and assign the appropriate pins. Temperature readings update continuously and can trigger actions — for example, turn on a fan when temperature exceeds 30C or sound a buzzer as a high-temperature alert.