Component: Water Sensor (Grove 101020018) (101020018) (Environmental)
From Flowcode Help
Jump to navigationJump to searchAuthor | Matrix Ltd |
Version | 1.0 |
Category | Environmental |
Contents
Water Sensor (Grove 101020018) component
The water sensor uses a 1M ohm pull-up resistor. The resistor will pull the sensor trace value high until a drop of water shorts the sensor trace to the ground trace. You can use it with an analog input pin to detect the amount of water in contact between the grounded and sensor traces.
Component Source Code
Please click here to view the component source code (Beta): FC_Comp_Source_Grove_Water_Sensor.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
![]() |
GetIntValue |
Returns the analog reading as an integer value. | |
![]() |
Return |
![]() |
GetFloatValue |
Reads the analog value as a floating point value between 0 and 100 | |
![]() |
Return |
Property reference
==Macro reference==
![]() |
GetIntValue |
Returns the analog reading as an integer value. | |
![]() |
Return |
![]() |
GetFloatValue |
Reads the analog value as a floating point value between 0 and 100 | |
![]() |
Return |