Back
The bottom-of-the-table side looked to be heading for another difficult afternoon after falling 19-0 behind inside the opening 20 minutes at Lockwood Park.
However, the visitors produced an impressive response to draw level at 19-19 before eventually going into the break trailing 26-19.
Otley secured a four-try bonus point but were denied a second bonus point when Huddersfield fly-half Will Milner kicked a penalty four minutes from time.
The result followed a heavy 53-7 home defeat against Tynedale the previous week, although head coach Steve Boden, who has replaced Kyle Dench, was encouraged by his side's determination to fight back.
He said: "We made too many basic errors in that period, but the fight and desire to get back into the game was there - and hats off to our lads.
"You lose a bit of intent if you make too many basic errors, such as not catching high balls and turning the ball over in good areas of the field.
"I cannot fault the boys' efforts, which were there in abundance, but we just have to be a bit more accurate."
The match kicked off 15 minutes late to allow the pitch to thaw, with conditions remaining difficult throughout the afternoon.
Otley fell behind after five minutes when Huddersfield scrum-half Dominic Walsh collected a kick from the left-hand touchline to score, with Milner adding the conversion.
The hosts extended their advantage five minutes later through flanker Tom Haywood, who crossed from a line-out drive for another converted try.
Otley struggled to establish themselves in the opposition half and conceded a third try in the 19th minute when their scrum was pushed backwards, allowing number eight Lewis Bradley to score.
However, the visitors finally found a response three minutes later as hooker Corey McCormack crossed for their opening try, converted by winger Alex Jones.
George Lunn then went over following good attacking continuity in the 27th minute, with Jones again adding the extras to reduce the deficit to five points.
Otley continued their comeback and drew level in the 34th minute when McCormack claimed his second try from another powerful rolling maul following a penalty kicked into the corner.
Huddersfield nevertheless restored their seven-point advantage before half-time, with lock Liam Parfitt crossing after weak tackling allowed the hosts to secure their bonus-point try.
Milner converted to make it 26-19.
The hosts missed an opportunity early in the second half when their line-out throw went astray, before replacement Ethan Myers was shown the only yellow card of the match for a high tackle.
Otley took advantage of the numerical advantage in the 55th minute when flanker Jonathan Freeman crossed for their fourth try to secure a bonus point.
Jones converted to bring the scores level at 26-26.
However, Huddersfield regained control four minutes later when replacement Harry Moore scored from another line-out drive, with Milner converting.
Otley continued to battle but could not find another breakthrough, and Milner's 76th-minute penalty ensured the hosts claimed all five points.
Boden added: "We are a young group - our average age is only about 22 - and we will keep on fighting, keep together and we deserved two points out of this."
Otley remain bottom of the table with 10 points, nine behind second-bottom Heath and 10 adrift of Wharfedale and Billingham.
They travel to fifth-placed Hull Ionians on Saturday in a fixture postponed earlier in the season because of scrumpox.