Your first accessory
Plug a sensor module into TinkerPie and read it: a soil moisture plant alarm. Beginner · 10 min
Start this tutorial in TinkerPie Studio
Wire it
Soil moisture sensor: AO → P10, VCC → 3.3 V, GND → GND. The Accessories page shows the wiring of 47 modules.
Read it
Open Accessories → Sensors. Put
show numberinforeverand dropsoil moisture % on pin P10into it.Decide
Use
if … else: if moisture< 30show a sad face and beep, else show a happy face.Test without the sensor
Press Run. The Accessories panel under the simulator now has a soil moisture slider. Slide it down: the plant gets thirsty.
On the board
Download it and put the sensor in a plant pot. Water it and watch the face change.