Get the bulk price for configurable products that include simple products: Magento 2.3

Currently I use the following code in addtocart.phtml To get animal pricing data:

$allTiers     = $_product->getTierPrice();
$checktiers   = array_values($allTiers);
$tierPrices   = json_encode($checktiers);

This only works for simple products and not for configurable products that contain simple products. The output on the configurable products is always returned empty Array.

How can I retrieve pricing data from a configurable product that contains several simple products?

Any help?

Thank you in advance…!!!