Read pin state from IR

- Basic read pin functionality for left and right IR sensor