Hi
https://randomnerdtutorials.com/esp32-lora-rfm95-transceiver-arduino-ide/
OR
https://www.banggood.com/LILYGO-TTGO-2Pcs-ESP32-SX1276-LoRa-868MHz-bluetooth-WI-FI-Lora-Internet-Antenna-Development-Board-For-Arduino-p-1295045.html?rmmds=search&cur_warehouse=CN
and just add HC-SR04
HC-SR04 info
https://randomnerdtutorials.com/complete-guide-for-ultrasonic-sensor-hc-sr04/
esp32 info
https://www.instructables.com/id/Pocket-Size-Ultrasonic-Measuring-Tool-With-ESP32/
try PIR Sensor
https://www.youtube.com/watch?v=PcqiKy_rb24
https://randomnerdtutorials.com/esp32-pir-motion-sensor-interrupts-timers/
SMS
https://www.mickmake.com/post/sms-lora-long-distance-sms-without-4g-project