MS2 Raspberry Pi code

This is the ms2 raspberry pi code before it is changed for out app