To get the digital input status i use a callback function in my python script.
You wrote you read the input.
Which function you use to read the digital input?
coopi