Help with a Battery Monitor and Battery Cut-Off

Hello, I have a working arduino code on an esp32 microcontroller. I have started to build an app using MIT APP Inventor to control it via bluetooth. I'm struggling to get the blocks to monitor a 12v battery and have it be controlled by the app to cut all loads when the battery reaches a user defined level.