Changed executeActivateAnalogPin() to avoid setting the pin mode as INPUT all the time