Interference from main 120v

Upon further testing, i discovered the system to be more stable when sending command through the serial monitor of the Arduino IDE instead of the VB project. Is this relevant?