Class WaterSensor

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

    public class WaterSensor
    extends AnalogSensor<java.lang.Double>
    WaterSensor class defines the water sensor.
    • Constructor Detail

      • WaterSensor

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