A user device may determine that an environmental parameter, sensed by the user device, satisfies a condition, and may detect an emergency based on detecting that the environmental parameter satisfies the condition. The user device may output, via the user device, an alarm notification, and may determine whether an input is received by the user device to cancel the alarm notification. The user device may notify an emergency device when the user device determines that input is not received by the user device to cancel the alarm notification.