in this constructor we need to initialize all variables and configure input and output pins. i.e. determining the analog input pin that will be used in reading the voltage