Looking for guidance with monitoring 2 proximity sensors

Here's a basic version to illustrate the concept: