i conect the right pin of the sensor at voltage (5v), middel pin at ground and left pin at Arduino Digital Pin number 0.
So, this statement is nonsense? It does not agree with the picture.
int RECV_PIN = 10;
The picture says that the receiver is connected to pin 2.