# Verification Needed: Connecting Sensors/Controllers

**URL:** <https://forums.buildingsmart.org/t/verification-needed-connecting-sensors-controllers/6126>\
**Category:** Developers\
**Tags:** ifc\
**Created:** [May 19, 2025, 7:01am UTC](https://forums.buildingsmart.org/t/verification-needed-connecting-sensors-controllers/6126 "2025-05-19T07:01:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shihangzhang](https://avatars.discourse-cdn.com/v4/letter/s/77aa72/32.png) [@shihangzhang](https://forums.buildingsmart.org/u/shihangzhang)\
**Post date:** [May 19, 2025, 7:01am UTC](https://forums.buildingsmart.org/t/verification-needed-connecting-sensors-controllers/6126/1 "2025-05-19T07:01:24Z")

</div>

I’m implementing control system components in IFC and need verification on my connection approach. According to the buildingSMART documentation, the recommended way is to connect outputs to inputs through Port Nesting properties.

My specific implementation steps are:

1. Using **IfcRelNest** to connect:

- `IfcSensor`/`IfcController` (as the nesting host)
- `IfcDistributionPort` (as the nested component)

1. Then using **IfcRelConnectsPorts** to establish the relationship between:

- Source `IfcDistributionPort` (from sensor/controller)
- Target `IfcDistributionPort` (to downstream equipment)

Could you please confirm:

- Is this the correct interpretation of the port nesting methodology?
- Are there any common pitfalls in this implementation?

 ![image](https://us1.discourse-cdn.com/flex016/uploads/buildingsmart1/original/2X/4/4e3ea9df9ebb08800cf6e554181242a21a98346c.png)

Thank you in advance for your expertise.

Best regards,
