i would like to read a high value for my gpio pin as right now my input value to the pi is reading from a digital sensor either 0v(low) or 0.9v(high). however i do know that 0.9v is too low to allow the gpio to know that it is actually a high value
is there any software coding where i can reduce the input value of the pin lower so that 0.9v is a high and 0v is a low without hardware implementation?
my code here is:
import RPI.GPIO as GPIO from time import sleep GPIO.setmode(GPIO.BOARD) GPIO.setup(18,GPIO.IN) while True: input_value = GPIO.input(18) print str(input_value) +"v" sleep(1)