First time playing with an IR sensor.

seadanzig:
Hi there newbie here too.

Just looking through your code

You have data is 0

Then if data is not equal to 125
Then print data.
Take out if statement.

Then use println(ir);
That is what you need to send
Hope tbst helps

Sorry I dont understand. Data is only initialized as "0", that code doesn't actually effect anything. I have the if statement there to filter out the 125s that it gets for just being on. (make it easier to read the log).
Also printing IR would result A0. You need to analog read A0 into memory first, which is why we have data.