Temperature sensor LM35 with TinkerPie
A simple analog thermometer probe: 10 mV per degree.
| Type | Analog sensors |
|---|---|
| Connect to | P10-P13 |
| Gives | °C (2-150) |
| Simulator | Yes: a control appears under the simulated board |
How to wire it
Plug the module's A0 / OUT into P10 (or P11-P13 when Wi-Fi is off), VCC to 3.3 V, GND to GND.
Code
In blocks: Accessories category in TinkerPie Studio. As code:
// JavaScript
sensors.lm35Temperature(Pin.P10)
// Arduino C++
sensors::lm35Temperature(Pin::P10)