I changed the input to the pullup and added {} and now it's just reading object detected all the time even when there isn't one.
I changed the input to the pullup and added {} and now it's just reading object detected all the time even when there isn't one.