Building Secure IoT Devices: Best Practices and Strategies