WaveUp is an Android app that switches the screen on when you wave a hand over the proximity sensor near the earpiece. It also turns the screen on when you pull the phone out of a pocket or bag, so you can check the time without pressing the power button.
Both wake modes are on by default and can be turned off in the settings. An optional screen lock mode locks the phone when you cover the sensor for a set time, and it is off by default. The source code is public under the GPL-3.0-only license. The app uses the Android Accessibility Services API from Android 9 onward, and the project notes that some phones may drain more battery because they keep the processor running while listening to the sensor.
Alternatives to WaveUp
Products that do a similar job in System & Customization.
AlDente
Menu bar tool that caps how far a Mac battery charges
SysReadout Monitor
Android system information shown as a KDE Konsole-style terminal
cleanyourtv
Removes preinstalled apps from Android TV devices over Wi-Fi
ohmyzsh
Community framework for managing zsh configuration, plugins and themes
glances
Terminal system monitor for Linux, BSD, macOS and Windows
Stats
Menu bar system monitor for macOS
Rectangle
Keyboard-driven window moving and resizing for macOS
Mole
Open-source cleaner for freeing disk space on Mac and PC