Can you follow either end to find out where it goes?
There are lots of misc wiring looms in the engine bay that connect electrical parts like sensors and such. It's possible the clip holding the wiring in place broke or came loose. You might be able to re-secure it or re-route it below the intake piping so it is no longer visible.
__________________

2011 370Z 6MT Sport Gun Metallic | ARC | CJM | Ecutek | FI | Fujimura | R2C | SPL | Stillen | TWM | Z1 | ZSpeed |
|