This document provides an introduction to using Azure IoT services for mind-machine interfacing by capturing brain activity data through EEG devices, discussing how brainwaves are produced and categorized into different frequency bands that correlate to mental states, and demonstrating how the collected brainwave data can be analyzed in the cloud and used to control IoT devices or machines.