Simplified readHumidity and readTemperature methods to return value of private variables. Added readSensor() method to store values of humidity and temperature in private variables
Signed-off-by: DrJPK <91477569+DrJPK@users.noreply.github.com>
Adds private class variables for temperature and humidity so that both humidity and temperature can be read simultaneously.
Adds a lastPollTime variable to prevent polling the sensor too frequently
Signed-off-by: DrJPK <91477569+DrJPK@users.noreply.github.com>