Soil moisture sensor with TinkerPie
Push the fork into the plant pot to know when it needs water.
| Type | Analog sensors |
|---|---|
| Connect to | P10-P13 |
| Gives | 0-100 % (wet = high) |
| 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.soilMoisture(Pin.P10)
// Arduino C++
sensors::soilMoisture(Pin::P10)
Projects with the Soil moisture sensor
Thirsty plant alarmA soil moisture sensor tells TinkerPie when the plant needs water: a sad face and a beep.Sensor projectsSmart plant monitorSoil moisture on your phone dashboard, a notification when the plant is thirsty, and a ThingSpeak log.IoT