immune receptor activity [GO_0140375] - Virtual Fly Brain