A door security apparatus includes a door-locking member and a sensor assembly. The door-locking member removably engages a plate. The door-locking member is a barricade that restricts movement of a door from a closed position to an open position while the door-locking member is engaged with the plate The sensor assembly is configured to detect engagement between the door-locking member and the plate.