For automatizing the measurement I need bistable elements and positive and negative flank sensitive elements, i.e. when there is a transition from true to false or vice versa the element should give true or false. I didn't find any of those elements.