User manual

39
22n
d
Da
y
In the Advent calendar today
•1x moisture sensor
•1x resistor 1kOh
m
M
oistu
r
e
measu
r
ement
Today, you get another sensor: a moisture sensor. You can use
it to measure moisture.
C
omponents: 1x board, 1xmoisture sensor, 1xresistor
1kOhm, 3xjumper (different lengths
)
T
h
e S
k
etc
h
The program
f
or this day is Tag22.in
o
a
n
d
l
ocated
in
d
ir
ec-
tory
T
ag2
2
. As on the previous days, the sensor is read via
ana
l
ogRea
d
and the value is
p
assed on to the wireless inter
f
ace
:
v
oid loop
()
{
sensorValue = analogRead
(
sensorPin
)
;
HC05.print(“Moisture sensor value= “)
;
HC05.println
(
sensorValue
)
;
delay
(
2000
)
;
}
T
h
e Ap
p
T
h
e texts are
d
isp
l
aye
d
using t
h
e App
Se
ri
al
B
luetooth
T
e
rmin
al
. First, connect to t
h
e IoT-
b
oar
d
. You wi
ll
see the moisture sensor value then. Take the moisture sensor between two fi ngers and observe how the
values develop.
22. Day
The circuit is similar to the circuit
f
rom day 21. Only the sensor needs to be
swappe
d
.
fritzing
15007-3 Conrad Adventskalender Internet of Things 2017_en.indd 3915007-3 Conrad Adventskalender Internet of Things 2017_en.indd 39 13.08.2017 17:03:2113.08.2017 17:03:21