Public Addressing System

I’m making a project Public Addressing System , in which I’m using PIR sensor, Ultrasonic sensor as input devices & speaker as output device.Aim of our project is communicating a message effectively to an individual or a large volume of people, especially in emergency cases or big gatherings in an outdoor venue. We’re using two sensors for more accuracy. Can you please help me in coding part ?? Plz check attachment for circuit diagram.