Updated the serial communication 

Java communication not currently working, can be used with the serial monitor, requires serial communication to detect using sensor.