How to use a sensor as a raspberry pi control

Hi, my name is André, I am starting a project and would like to know how to use a sensor as a control on a raspberry with installed rearview. How to make ESP32 recognized as a control. Sorry for the translation through google.

:slight_smile: Thanks