Accuracy is not high

I made a project on seeed xiao nrf52840 sense board. As shown in the code I provide below, and the serial monitor screenshot, the results I get are not as expected. Does anyone have any suggestions for my code and project?
Screenshot 2023-10-17 at 20.47.46

@Dohieu825 The screenshot of the Serial Monitor did not make it into your post.