We are planning to design a road traffic controller which will detect the road traffic intensity and according to that green light's on time will be determined.
Besides, we will design rail gate controller which will automatically detect the arrival/departure of train and close/open the rail gate.
What sensors are suitable for these purposes?