Top one looks like a camshaft position sensor. The bottom one looks like the crankshaft position sensor that RockAuto sells. Did you remove this from the right cylinder head near the front? If so, it's the camshaft position sensor. The crankshaft position sensor is low on the right side of the block, just forward of where the transmission bolts to the engine.