Hello, I’m sorry I couldn’t answer earlier.
I recently found a topic on developing a speed sensor relative to water, it really interested me and I used the materials and made it. I liked it much better in my work and I am sure that I can get a more accurate speed of the boat than through an encoder. Thank you for deciding to help me, but now I will receive speed from two such speed sensors as in this topic. Thank you @Mckey