This document is a master's thesis that investigates how AI planning techniques can be used for modeling services in the context of the Internet of Things (IoT). It begins with background on AI planning and defines the IoT. It then explores using rule engines, domain-specific planning, and domain-independent planning to solve representative IoT use cases of increasing complexity. It evaluates the performance of a state-of-the-art planner on a challenging waste collection problem and suggests techniques for improving scalability. The thesis concludes by summarizing achievements and outlining directions for future work.