Class HumiditySensor

  • All Implemented Interfaces:
    ISensor<java.lang.Double>

    public class HumiditySensor
    extends AnalogSensor<java.lang.Double>
    HumiditySensor class that defines the humidity sensor.
    • Constructor Detail

      • HumiditySensor

        public HumiditySensor​(java.lang.String name,
                              double defaultValue,
                              ADC adc,
                              int channel)
        Constructor for the HumiditySensor class.
        Parameters:
        name - the name of the sensor.
        defaultValue - the default value of the sensor.
        adc - the AdC object to use to convert analog signal.
        channel - the ADC channel where the sensor is connected.