Hi I have a wireless sensor connected to a flow switch. Most of the time the water will flowing so the switch will be in the closed position.This is a battery powered wireless sensor so am trying to use as little power as possible.
So a switch, not a flow sensor.If you connect the switch between input pin and ground,and connect the (10-100k) pull up resistor between input pin and an output pin,And switch that output pin to HIGH just before sampling and LOW after that,then you don't use any current at all.Leo..
yes, that is probably the best method.The other option is to use a 100nF cap on the input pin (to GND) and use a 1M pullup resistor. The extra current then is only 0.005mA.By the way, 0.1mA seems quite a lot for a sensor node in standby... The ones I made only use 0.003mA