Added ReceivePiData

Created a function to deal with handshaking after data has been sent to the raspberry PI (hanlder1)