Internet of Things (IoT) is a network of interrelated physical objects that can collect and exchange data with one another through embedded electronics, software, sensors, over the Internet. It extends Internet connectivity beyond traditional networking devices to a diverse range of physical devices and everyday things that utilize embedded technologies to communicate and interact with the external environment. The IoT brings automation and efficiency improvement to everyday life, business, and society. Therefore IoT applications and market are growing rapidly. Contrary to common belief that IoT is only related to wireless technology, optical technologies actually play important roles in the growth of IoT and contribute to its advancement. Firstly, fiber optics provides the backbone for transporting large amount of data generated by IoT network in the core, metro and access networks, and in building or in the physical object. Secondly, optical switching technologies, including all-optical switching and hybrid optical-electrical switching, enable fast and high bandwidth routing in IoT data processing center. Thirdly, optical sensing and imaging delivers comprehensive information of multiple physical phenomena through monitoring various optical properties such as intensity, phase, wavelength, frequency, polarization, and spectral distribution. In particular, fiber optic sensor has the advantages of high sensitivity, low latency, and long distributed sensing range. It is also immune to electromagnetic interference, and can be implemented in harsh environment. In this paper, the architecture of IoT is described, and the optical technologies and their applications in the IoT networks are discussed with practical examples.