How to read values from an analog sensor( for ex. Sharp IR sensor) continuosly and display on page?
Found the answer. Try this code
to read the values from the device use the code in this post
and use a setInterval function
setInterval