I was thinking something like this. Once you trigger it it’ll only run for as long as its needs then shut off.