fixed button_not_found function to take a screenshot when something goes wrong.
changed threshold fluorescence in gate.