added the code to check levels from the PiMo prototype boards,
shutdown if necessary and so on