Modified sketch to finally send all the data to the android application.