Enviar rexistro por email: Optimal resource allocation in cellular sensing systems