Revert "Revert "Primera version de la funcion de deteccion de movimiento""

This reverts commit f0d363a31db6f3e9a93488cc74bdfed50876d359.