Class MoistureSensor

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

    public class MoistureSensor
    extends AnalogSensor<java.lang.Double>
    MoistureSensor defines a moisture sensor.
    • Constructor Detail

      • MoistureSensor

        public MoistureSensor​(java.lang.String nameId,
                              Position sensorPosition,
                              double defaultValue,
                              ADC adc,
                              int channel)
        Constructor for MoistureSensor.
        Parameters:
        nameId - the name of the sensor.
        sensorPosition - the position 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.