The current plot looks right on nRF Connect app. When the same function run with this code using Python gives totally different values. Tried adjusting the baud rate. The timing between samples, but nothing worked so far,


I tried verifying api with the original source code and it all looks clean.
Is there any possible reason/solution to this? Any parameters I can play around with! Any help would be appreciated.