Java and Scratch Interface (sensor module)