Max-Min values of forced oscillation using MPU6050

Hey the answer is on line 76 of your code. That at least is what my crystal ball says. It might be a bit wonky so follow the advice here.

how to get the best out of this forum