Erratic MOSFET

Both those MOSFET types require 10V of gate drive, they won't work properly with 5V - they might turn on a little bit, but they won't do so reliably.

When looking for MOSFETs for direct drive from logic level (5V) signals, you must get logic-level MOSFETs. The key spec on the datasheet is the value of Vgs at which the Rds(on) is specified. "Rds(on) at Vgs=4.5V" is typically the specification to look for. 4.5V is used to allow for below-spec 5V supplies. If the only Rds(on) values are given for Vgs=10V, or if Vth is specified as "2--4V" then is NOT logic level.

Vth (threshold voltage) confuses a lot of newcomers - its the voltage at which the device switches OFF. For logic level devices it will typically be 0.5 to 1.0V or so.