Resource allocation for signal detection with active sensors