Otp based system

I am trying to develop OTP based app in which when I enter OTP in the app the motor will rotate.can anyone help to make this project

Firebase authentication offers an OTP option: