sdf
Dependencies: mbed C12832 Servo RangeFinder Pulse
Diff: moistureSensor/MoistureSensor.h
- Revision:
- 0:4db5f0f5faa0
diff -r 000000000000 -r 4db5f0f5faa0 moistureSensor/MoistureSensor.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/moistureSensor/MoistureSensor.h Wed Feb 23 10:19:24 2022 +0000 @@ -0,0 +1,19 @@ +#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