amiraenef:
I am still confused with the program for its ultrasonic sensors
when the portal closes, but the train has not passed, I'm worried the portal will reopen
how to program the ultrasonic sensors so that when the bar closes, but the train has not passed, the bar is still closing
and will reopen when the train has already passed through the ultrasonic sensor and the ultrasonic sensor does not detect any train in front of the sensor
It would help tremendously to break this conglomeration into discrete sentences that: express single thoughts; begin with capital letters; end with periods ( . ); include at least one space between sentences.
If you cannot express your idea clearly how is anyone to divine your meaning?