All buses have a device which has actuators to control the closing of the doors and the operation of the handbrake, built-in sensors that can detect if there are any standing passengers, a means of making announcements, and a central processor capable of determining whether and when such an announcement would be appropriate.
It's called a driver.