Read ir sensor

code created,
Cannot figure out how to analog read
Just need to analog read and then the code will work