Using Blockchain to secure the Internet of Things (IoT)