How to Use QR Codes to Control Devices