Waterproof thermometer DS18B20 with TinkerPie
A metal probe you can put in water, soil or tea.
| Type | Timing sensors |
|---|---|
| Connect to | any accessory pin (4.7 k pull-up on the module) |
| Gives | °C (-55 to 125) |
| Simulator | Yes: a control appears under the simulated board |
How to wire it
One or two signal pins on S1-S4 or P10-P13. Studio reads them with precise timing in the board firmware.
Code
In blocks: Accessories category in TinkerPie Studio. As code:
// JavaScript
sensors.ds18b20Temperature(Pin.S1)
// Arduino C++
sensors::ds18b20Temperature(Pin::S1)