This document provides an introduction to cyber-physical systems (CPS) and the Internet of Things (IoT). It defines CPS as systems where physical and software components are tightly integrated. CPS merge computing/communication with physical processes to make systems safer, more efficient, and provide new capabilities. The rise of low-cost sensors, networking, and computation enables CPS and IoT devices to connect physical systems. However, the connectivity and reliance on devices raises security and privacy concerns that must be addressed.