Help needed with telegraf, modbus and starlark plugin

Hi helenosheaa,

thank you for your reply. I am not deep into coding so i wasn’t afraid of the importance of indention.
Your version indeed get a step futher. The actual error now is:

2021-05-14T17:45:17Z E! [telegraf] Error running agent: could not initialize processor starlark: processor.starlark:9:80: got float literal, want ‘)’

I understand that a division results in a float value. But the error remains the same, even if i cut the division (/10000). So i dont see what the error is about in this script.
Do you have clue ?

Thanks for spending your time and have a nice day!
Dennis