I just found my problem. It was these two lines

SYMBOL RTOUT = GPIO.4

SYMBOL PEIZO = GPIO.5

I had changed my board on the last run and forgot to change the pin numbers in the code. The input was working fine it was the output the whole time.My silly mistake

SYMBOL RTOUT = GPIO.5

SYMBOL PEIZO = GPIO.4

I am back up and running thank You for your reply!