Eletric Power Sensor

have a look at SCT-013 current clamp
has the advantage of being noninvasive - clamp the sensor around ONE of the supply cables
if it is three phase motor use three clamps, e.g. ESP32-4-Channel-Mains-Current-Sensor