def __power_management(self, on):
    # Some kind of 'power management' with the last gpio pin number :) https://raspberrypi.stackexchange.com/questions/68123/preventing-corrosion-on-yl-69
    if self._device['power_mngt'] is not None:
      logger.debug(f'Sensor {self} has power management enabled')
      if on:
        logger.debug('Enable power to the sensor {self} now.')
        GPIO.output(self._device['power_mngt'], GPIO.HIGH)
        sleep(1)
      else:
        logger.debug('Close power to the sensor {self} now.')
        GPIO.output(self._device['power_mngt'], GPIO.LOW)