Using a pulse sensor to paint