Detect Wave Height

although I have little experience. I know you will need a gyro, a accelerometer or both and could use those to calculate the movement of the buoy vertically as well as tilting.