Difference between revisions of "Component: Water Sensor (Grove 101020018) (101020018) (Environmental)"
From Flowcode Help
Jump to navigationJump to searchLine 73: | Line 73: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
+ | |||
+ | |||
Line 109: | Line 111: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
− | |||
− | |||
Revision as of 12:20, 3 February 2023
Author | 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 download the component source project: FC_Comp_Source_temp/Grove_Water_Sensor.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_temp/Grove_Water_Sensor.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
GetFloatValue
![]() |
GetFloatValue |
Reads the analog value as a floating point value between 0 and 100 | |
![]() |
Return |
GetIntValue
![]() |
GetIntValue |
Returns the analog reading as an integer value. | |
![]() |
Return |