3 phase power convert to 3.3v raspberry pi signal
Use a relay.



simulate this circuit &ndash; Schematic created using CircuitLab
Figure 1. A possible circuit.
The relay separates your 3-phase from your 3.3 V Raspberry Pi circuit making it a safe system.