Help guys Newbie here ~

I have a project that if the current is loss it will automatically notify the register number ( GSM Module ), I am using current sensor , AC bulb , Gsm module ,arduino mega , UPS (uninterruptible power supply) .

I already have codes and its working when i power up the Arduino using laptop and checking the serial monitor . And i can clearly see the current flow in current sensor ( in AC Bulb) so i came up to do if else statement . some thing like this :

if ( AMP <= 0.05) send notification to the number.

and its working .

My problem is when i changed the source of the arduino , its not working . What is the problem guys ? Hope you could help me Thanks ~

I am using 5V 60A power supply by the way ( to power up my RGB LED Strip).

Are all the grounds connected?

My problem is when i changed the source of the arduino , its not working .

Are saying you bought another Arduino from a different supplier?

yes all grounds are connected