Powering an SS49E stile hall sensor with Arduino Digital Pin

I am trying to power an SS49E hall sensor with a digital pin on the Arduino. When the sensor is directly connected to 3.3V and ground, the signal averages 545 counts with a range from 535 to 555 with North and South polarity which I believe is the correct response. When I power the SS49E with a digital pin, the output is highly variable and never exceed 150. It seems to react to the magnet at times but is very inconsistent.

Ian

Try adding a 100 nF decoupling capacitor across the power pins of the Hall sensor.

Thank you.

Will try that tonight.

That seemed to work well. If you have time could you give a small explanation of why this worked?

Thanks again.

https://en.wikipedia.org/wiki/Decoupling_capacitor