Design Principles for Modern IoT Devices