When anyone pass the puppy then it will block the visible light that incident upon it
So here we are blocking the visible part of light by passing the puppy which means we have to design a sensor that will sense the visible light.
So here the electromagnetic part of the sensor is capable to detect this change only
so here correct answer must be
B. Visible Light