I have a problem getting correct readings from a 5v digital sensor connected to an Arduino Uno board. I get correct reading until I start the VFD that drives a 3-phase motor. The sensor reading then becomes illogically wrong! until I stop the VFD again. I tried using a 100nf decoupling capacitor just before the Arduino input pin but it didn't help. I can't change or
The Arduino is powered by a buck converter, which is powered by a power supply that shares the same main with the VFD and I can't change that. The system is grounded, and I can't change any wires unfortunately.
The very first thing is to physically distance the sensor as far as possible from the VFD.
Second is to use shielded wire connecting the sensor and the Arduino, with the shield connected to ground at the Arduino. The other end of the shield must be left with no connection.
Third is to shield the sensor and connect the shield to the wiring shield.
I moved your topic to an appropriate forum category @shamooooot.
In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.