Basic C++ code to read IR sensor on maestro