The main task of the detector is to detect violations in the protected area. but it can also be used to implement the functions