Hi guys, im using the gp2y0a02 sensor for my project. i have try out the codes but the reading show a bit weird.
this is the code im using. the serial monitor does show value but not consistent.
Do u think my codes are wrong? I wan to get the reading
Replies
also, have you looked at:
http://luckylarry.co.uk/arduino-projects/arduino-using-a-sharp-ir-s...
I don't know anything about that hardware, and I only glanced at your code.
But maybe try:
// int val;
float val;