Example using the moisture sensor
Dependencies: mbed
Fork of Seeed_Grove_Moisture_Sensor_Example by
main.cpp
- Committer:
- blazter94
- Date:
- 2017-10-16
- Revision:
- 1:28a27f317a57
- Parent:
- 0:780321a3f63a
File content as of revision 1:28a27f317a57:
#include "mbed.h" AnalogIn moisture(A3); int main(void) { float value = 0.0f; while(1) { value = moisture; printf("\nMoisture reading is %2.2f\n", value); wait(1.0f); } }