Automotive and Marine environments are very harsh to delicate microcontrollers. Most hobbyist devices are unsuited to these environments without significant protection. Manufacturers make chips for these environments that have built in protection. But, having said that …
There are switch mode power supplies with 24V to 12V input and 5VDC output, suitable to power microcontrollers, laptops, phones etc; sealed against moisture for marine environments. Avoid the cigarette lighter USB devices, they are pretty basic and have little protection.
Most microcontrollers available through Core Electronics could be programmed to do what you want. It depends on how much programming and electronics experience you have. Input/Outputs would need protection, possibly using opto isolators. The one I have been using recently is the Raspberry Pi Pico W. It is easy to use and program using Thonny & Micropython, has memory storage and WiFi. Bluetooth is yet to be implemented in Micropython. Might be worth a look.
Regards
Jim
EDIT: Microcontroller for automotive applications. Try a Google search of Microcontroller automotive, many available and the cost is interesting.