This document discusses a plug and play approach for sensors to communicate with the cloud via IoT gateways and cloud APIs. It first defines plug and play and describes how IoT gateways can translate between different sensor protocols and facilitate communication with the cloud. It then discusses how cloud APIs provide standardized interfaces that allow IoT gateways to connect heterogeneous sensors to clouds in a plug and play manner without additional programming. Specifically, cloud APIs for IoT gateways consist of sensor, rule, and communication engines that handle data extraction from sensors, processing rules, and transmitting data to clouds through various wired and wireless connections. This plug and play approach via IoT gateways and cloud APIs provides an effective way to access sensor data from clouds.