sdf

Dependencies:   mbed C12832 Servo RangeFinder Pulse

Revision:
0:4db5f0f5faa0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/moistureSensor/MoistureSensor.cpp	Wed Feb 23 10:19:24 2022 +0000
@@ -0,0 +1,25 @@
+#include <mbed.h>
+#include <MoistureSensor.h>
+
+
+ 
+moisture_sensor::moisture_sensor(PinName pin) : _pin(pin)
+{
+// _pin(pin) means pass pin to the AnalogIn constructor
+}
+moisture_sensor::~moisture_sensor ()
+{
+}
+float moisture_sensor::read()
+{
+//read moisture sensor
+    return _pin.read();
+}
+
+/*
+float moisture_sensor:getCurrentmoisture_sensor()
+{
+    currentMoistureSensor = Moisturelevelreading.read()
+                            return Moisture_Sensorreading;
+}
+*/
\ No newline at end of file