Raspberry Pi Distance Meter with Java