Hey
I had that exact problem with my car, so i took it to the car dealers coz it was due for a service also. It is the sensor, they cleant it and everything and after the service it dne it agen jst wen i fetchd the car bt after a drove it back to work it was right agen. Bt its definitly the sensor that u wud have to replace if the cleaning of the sensor doesnt help. Bt the cleaning helpd mine.
The sensor is between the throttle body and intake