All trains have a device on the last car that monitors air pressure and is in radio contact with the head end. It attaches to the air line and is mounted on the knuckle.
It’s called a FRED Unit, which stands for friendly rear-end device. (Sounds kind of gay.)