varying readings from Hall effect sensor

Im using a Linear Hall effect Sensor, and reading the values using analogread.
The reading differ when some other devices are powered through the same arduino., say a led is connected.
Is there any way to get constant readings from the sensor?
Thank you :slight_smile:

Employ some better decoupling.

How much does your reading vary? How are you connecting the LED, with or without current-limiting resistor?

the change is readings is very evident. around 50-100 The led is connected to a digital out

thiagesh: the change is readings is very evident. around 50-100 The led is connected to a digital out

Post pictures

thiagesh: Im using a Linear Hall effect Sensor, and reading the values using analogread. The reading differ when some other devices are powered through the same arduino., say a led is connected.

Is there any way to get constant readings from the sensor?

Readings with default A/D settings are depending on Arduino's supply. If the supply is not stable (9volt battery, USB, swithing loads), A/D values are not constant.

Post the code and how you have connected things (including supply). Leo..