About BBBmini adds RPM sensor

Hello everyone, I am using BBBmini as my flight controller, but there is no way to add an RPM sensor. How do I add it?