update pir with energest code