This piece of code sets a threshold and reads all the sensors. Then sends an output to the serial port.

Dependencies:   mbed