pin should detect high to low change