Hi , @yuvraj.khatri107314
There are indentation errors , python is very indentation specific and the scope of the block should be correct , also please recheck the AUTH_TOKEN provided to you in the Twilio dashboard : Project 9: Sending an SMS when Temperature Crosses Threshold | Bolt this might help you understand debug the code,
Happy learning,
Regards,
Lokesh Agarwal
Heyy Yuvraj!!
It looks like you’re facing an issue where the boltiot
module is not recognized in your Python environment. The error message typically indicates that the module is either not installed.
To resolve this issue, you can follow these steps:
- Install the Bolt IoT Library: Open your terminal or command prompt and execute the following command to install the
boltiot
module using pip:
“sudo pip3 install boltiot”
This command will download and install the Bolt IoT Python library along with its dependencies.
2.Verify Installation: After installation, you can verify if theboltiot
module is correctly installed.
By following these steps, you should be able to resolve the “boltiot module not defined” error and proceed with using the Bolt IoT library in your Python projects.
Then you have to also ensure the AUTH_TOKEN provided by twilio must be correct.
If you encounter any issues during this process, feel free to ask for further assistance!