Kambrook Remote Power Outlet & Arduino - working

I initially tried NewRemoteSwitch, RemoteSwitch, and RCswitch. None of these were able to detect this unit. So I used the manual analysis method by sniffing the signals.

Could someone explain how sniffing works and perhaps a simple example how to do it.