adcsensor: prevent reading when power is not ready

Currently, the adcsensor is reading all of the sensors even their power
state is not ready. It made the system waste more resources to read
files.

This commit checks the power state before requesting to read I/O files.
It prevents reading sensors when the power state is not ready.

Tested:
   1. Turn off the power.
      $ipmitool power off
   2. Check the adc sensors that have the "PowerState" property in
      Entity-Manager is "On"/"ChassisOn" via dbus interfaces.
   3. Those sensors have the "Available" property is "false" and the
      "Value" is "nan".
   4. The hwmon files that corresponding to those sensors are not read
   5. Turn on the power.
      $ipmitool power on
   6. Check the adc sensors that have the "PowerState" property in
      Entity-Manager is "On"/"ChassisOn" via dbus interfaces.
   7. Those sensors have the "Available" property is "true" and the
      "Value" is not "nan".

Change-Id: I52219f40fdd3b478425956c176ac40e3e16c10d1
Signed-off-by: Thang Tran <thuutran@amperecomputing.com>
diff --git a/src/adc/ADCSensor.hpp b/src/adc/ADCSensor.hpp
index f562405..16d9c66 100644
--- a/src/adc/ADCSensor.hpp
+++ b/src/adc/ADCSensor.hpp
@@ -89,4 +89,5 @@
     thresholds::ThresholdTimer thresholdTimer;
     void handleResponse(const boost::system::error_code& err);
     void checkThresholds() override;
+    void restartRead();
 };