Optical sensors and sensing technologies are playing a more and more important role in our modern world. From micro-probes to large devices used in such diverse areas like medical diagnosis, defence, monitoring of industrial and environmental conditions, optics can be used in a variety of ways to achieve compact, low cost, stand-off sensing with extreme sensitivity and selectivity. Actually, the challenges to the design and functioning of an optical sensor for a particular application requires intimate knowledge of the optical, material, and environmental properties that can affect its performance. This roadmap on optical sensors addresses different technologies and application areas. It is constituted by twelve contributions authored by world-leading experts, providing insight into the current state-of-the-art and the challenges their respective fields face. Two articles address the area of optical fibre sensors, encompassing both conventional and specialty optical fibres. Several other articles are dedicated to laser-based sensors, micro- and nano-engineered sensors, whispering-gallery mode and plasmonic sensors. The use of optical sensors in chemical, biological and biomedical areas is discussed in some other papers. Different approaches required to satisfy applications at visible, infrared and THz spectral regions are also discussed.