Sugar Soil Moisture Sensor Module
Last updated
Last updated
This is a soil moisture sensor module in the Sugar sensor series, the pin holes on the back allow compatibility with plastic building bricks.
Dimensions: 24 x 24 x 23 mm
Weight: 6.7g
Type: Analog
Use a 3Pin cable to connect the module to Robotbit Edu.
Sugar extension: https://github.com/KittenBot/pxt-sugar
Moisture(pin)
value()
value(): Returns sensor value
Sample Program
from future import *
from sugar import *
moisture_P0 = Moisture('P0')
x = 0
screen.sync = 0
while True:
screen.fill((0, 0, 0))
screen.text(moisture_P0.value(),5,10,2,(0, 119, 255))
screen.refresh()