Protecting IoT components from being physically compromised