using adc to reading the limit switch and test ok.