added a function that needs editing to turn off the mbed. Also some things are commented out to account for different numbers of sensors