sed usage

I'd like to extract the temps from the following command via a series of sed statements but the actual syntax is beyond me.

$ nc localhost 7634 
|/dev/sg1|ST3640323AS|31|C||/dev/sg2|ST3640323AS|30|C||/dev/sg3|ST3750330AS|32|C||/dev/sda|ST3640323AS|31|C||/dev/sdb|ST3640323AS|30|C||/dev/sdc|ST3750330AS|32|C|

So for /dev/sda I just want to get the number "31" and likewise for sdb "30" and sdc "32"

nc localhost 7634 |
awk -F'|'  '{ for (i=1;i<=NF; i++) { if( $i ~/^\/dev/ )  {j=i+2; print $i, $j  }}} '

thanks!