sensor interfacing with microcontroller