Failsafe active infrared sensor for swing doors which functions by distance measuring. It brings safety to the users by avoiding contacts with the doors in motion. The three-dimensional area of the sensor makes it particularly suitable for protecting people with disabilities.