If you want help on the rubbish bin site, post your question there.
If you want help here, post your code HERE in code tags!
"it doesn't work" tells us NOTHING. The code does SOMETHING. Tell us what it actually does.
You expect it to do something. "calibrate a sensor" doesn't tell us near enough.