Reading from a CT Sensor pin affected by Seven Segment Displays switching on and off

I would not use a module without knowing the exact specifications.
A simple current transformer with built-in or external burden resistor and three other parts (post#20), with threshold settings in software, could also have done the job.
Leo..