response=mybolt.analogread('A0')


solve the error

@ritik1717 its just an indentation error.
check this line in your code again :point_right: response = mybolt.analogRead(‘A0’)
It should be just like the above (I mean all those spaces and single quotation marks also)!

Hope correcting this solves. Thanks

Hello @ritik1717,

This error is caused because you might have copied the whole code from documentation in your editor, and because of this, inconsistent indentations are occurred.

So, to solve this remove all white spaces at the beginning of every line and add tabs for indentation.

Hope this works for you.

Thank you