Physical layer security for IoT applications