on the first pic i would guess that the oil pressure sensor is the one closest to the oil filter......and just trying to take a stab at it....i think the other sensor is a knock sensor. the knock sensor responds to spark knock caused by Pre-detonation of the Air/Fuel mixture.
on the second pic...