well Pulsin_Max is ok when the pulse is measured , but if it stays at 100% or 0 , then there is no time out ,

can someone advise some code that can get passed this