sdf

Dependencies:   mbed C12832 Servo RangeFinder Pulse

moistureSensor/MoistureSensor.h

Committer:
asimelfadil
Date:
2022-03-01
Revision:
1:47dc87d326ed
Parent:
0:4db5f0f5faa0

File content as of revision 1:47dc87d326ed:

#ifndef MoistureSensor_H
#define MoistureSensor_H

#include "mbed.h"

//Sensor new class for sensorA
class moisture_sensor

{
public:

    moisture_sensor(PinName pin);
    ~moisture_sensor();
    float read();
private:
//class sets up the AnalogIn pin
    AnalogIn _pin;
};
#endif