Added configurable channel number for sensor
Tested and corrected on raspberry PI