while()
loop where the user measures the sensor 8 times, and gets the mean or average value. This is specially suggested for analog sensors, this tip will avoid problems like noise. You can also place a delay(100)
inside the while()
to ensure time non-dependence.ON()
function before reading any sensor.sleepAgr()
function of the library when putting the mote to sleep when using the board interruptions for a proper configuration.