PIR -Sensor

but how to I make the screaming group you described?

void Scream()
{
   // Put some code here
}