Smart Parking using iot

In this project why are we using two different sensors(IR sensor & ultrasonic sensor) when the function of both of them are same?

Ir is used for getting information of cars entry and exit, Ultrasonic is used for the parking lot is occupied or not.

  Joined February 12, 2018      696
Monday at 02:11 PM

But can we not use only one sensor instead of the two because the function of both of them are same to detect vehicle?

  Joined May 08, 2021      1
Saturday at 02:31 PM

Yes but I think the detection is done in two different places. If it is lanned to use in such way it can be possible.

  Joined February 12, 2018      696
Monday at 02:11 PM