Current sense prob !!!

I am using 5A current sensor using Lm358 op-amp so far i tested with 60w bulb the output is 1.31v dc.. how to calculate actual current example for ACS714 Current Sensor Board: sensorValue = analogRead(analogInPin); // convert to milli amps outputValue = (((long)sensorValue * 5000 / 1024) - 500 ) * 1000 / 133; amps = (float) outputValue / 1000; this is the code for ACS714 Current Sensor Board:

But how to write a code for lm356Ic ?? can u help me ??

shyamvenkat: can u help me ??

dunno. can u write a better question and explain what the issue is?

shyamvenkat: how to calculate actual current

You need to know the formula for the conversion, and then implement it in code. We can help with the second part if you get stuck; the first part is up to you.