Example using the moisture sensor
Dependencies: mbed
main.cpp
- Committer:
- sam_grove
- Date:
- 2014-08-16
- Revision:
- 0:780321a3f63a
File content as of revision 0:780321a3f63a:
#include "mbed.h" AnalogIn moisture(A0); int main(void) { float value = 0.0f; while(1) { value = moisture; printf("Moisture reading is %2.2f\n", value); wait(1.0f); } }