Infrared Reflective IR Photoelectric Switch Barrier Line TCRT5000 Track Sensor

I picked up a few of these TCRT5000 based sensors, $1.01 on ebay ( ) and kludged together something to read the analog and digital ports, I called it IRButtonSmoothing: It combines Arduino Examples Analog Smoothing and Digital StateChangeDetection, combined with Arduino HOW-TO: Serial.print() to cpecific row & collu
Note this works on serial terminal emulators like putty (PC) and iTerm (MAC)
It does not work on the Arduino terminal

IRButtonSmoothing.ino (2.93 KB)

well it might get confused by those escape sequences. They are probably meant for special control for certain terminal emulators, and serial monitor is not a terminal emulator, it just displays characters or bytes.