Update button_read_example.py

fixed another logical issue