recantha.co.uk
Create an Internet of Things device using Java on the Raspberry Pi
Jose Cruz from Oracle has written a wiring and programming tutorial to read a flame sensor, movement sensor (PIR) and an ultrasonic distance sensor using Java ME 8. Read the tutorial here.