#!/usr/bin/env python
 
import os 
import logging
import RPi.GPIO as GPIO
import sys
import config 

colemeter_pin=config.get('colemeter_pin')
GPIO.setup(colemeter_pin, GPIO.IN)

def isWaterEmpty():
	config.updateConfig(GPIO.input(colemeter_pin), "reservoir")
	if (GPIO.input(colemeter_pin)):
		return False
	else:
		return True
	
if __name__ == '__main__' :
	import time
	while True : 
		print(isWaterEmpty())
		time.sleep(1)

8165b9e383142c9f3874dbc97262840dad176769
<mask token>


def isWaterEmpty():
    config.updateConfig(GPIO.input(colemeter_pin), 'reservoir')
    if GPIO.input(colemeter_pin):
        return False
    else:
        return True


<mask token>

<mask token>
GPIO.setup(colemeter_pin, GPIO.IN)


def isWaterEmpty():
    config.updateConfig(GPIO.input(colemeter_pin), 'reservoir')
    if GPIO.input(colemeter_pin):
        return False
    else:
        return True


if __name__ == '__main__':
    import time
    while True:
        print(isWaterEmpty())
        time.sleep(1)

<mask token>
colemeter_pin = config.get('colemeter_pin')
GPIO.setup(colemeter_pin, GPIO.IN)


def isWaterEmpty():
    config.updateConfig(GPIO.input(colemeter_pin), 'reservoir')
    if GPIO.input(colemeter_pin):
        return False
    else:
        return True


if __name__ == '__main__':
    import time
    while True:
        print(isWaterEmpty())
        time.sleep(1)

import os
import logging
import RPi.GPIO as GPIO
import sys
import config
colemeter_pin = config.get('colemeter_pin')
GPIO.setup(colemeter_pin, GPIO.IN)


def isWaterEmpty():
    config.updateConfig(GPIO.input(colemeter_pin), 'reservoir')
    if GPIO.input(colemeter_pin):
        return False
    else:
        return True


if __name__ == '__main__':
    import time
    while True:
        print(isWaterEmpty())
        time.sleep(1)

#!/usr/bin/env python
 
import os 
import logging
import RPi.GPIO as GPIO
import sys
import config 

colemeter_pin=config.get('colemeter_pin')
GPIO.setup(colemeter_pin, GPIO.IN)

def isWaterEmpty():
	config.updateConfig(GPIO.input(colemeter_pin), "reservoir")
	if (GPIO.input(colemeter_pin)):
		return False
	else:
		return True
	
if __name__ == '__main__' :
	import time
	while True : 
		print(isWaterEmpty())
		time.sleep(1)
