How do I count in App Inventor when detecting an obstacle with the infrared sensor?

Good afternoon, I am doing a project in which I have to count 1 in the app when the infrared sensor detects an obstacle. I already made the connection through bluetooth, the programming in Arduino IDE and the app in App Inventor. I'm missing the app to detect when the sensor turns on. What blocks do I need?

Greetings!