It depends on the type of sensor used. For example, passive and active infrared technology sensors can detect people because they use heat or light beams.   A magnetic probe on the other hand detects metals. Thus, they are ideal for detecting vehicles, but not people.