Question [Q] Front camera motion detect

Does anyone know of a tweak to make my screen turn on automatically when the front camera detects motion in front of it? I have my phone mounted on my wall for home automation tasks and a tweak like what's mentioned here would make me incredibly happy. I've so far not found anything like this. Or maybe it's how I'm wording it. Hopefully you understand and someone can point me in the right direction.