Class TemperatureSensor

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

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

      • TemperatureSensor

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